package com.dailyblue.java.project.oa.commons.mapper;

import com.dailyblue.java.project.oa.commons.bean.Power;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PowerMapper {
    @Select("select * from power where id in(select pid from emp_power where eid=#{userId})")
    List<Power> findPowerByUserId(int userId);
}
